variance annotationの例文
もっと例文: 1 2
- Use-site variance annotations provide additional flexibility, allowing more programs to type-check.
- C # allows variance annotations on the parameters of interfaces, but not the parameters of classes.
- Scala's rules for checking variance annotations are essentially the same as C #'s.
- It is possible to design a type system where the compiler automatically infers the best possible variance annotations for all datatype parameters.
- Use-site variance annotations aim to give users of a class more opportunities for subtyping without requiring the designer of the class to define multiple interfaces with different variance.